var regions = [
{"name":"上海","parent":""},
{"name":"北京","parent":""},
{"name":"天津","parent":""},
{"name":"河北","parent":""},
{"name":"山西","parent":""},
{"name":"内蒙古","parent":""},
{"name":"辽宁","parent":""},
{"name":"吉林","parent":""},
{"name":"黑龙江","parent":""},
{"name":"山东","parent":""},
{"name":"江苏","parent":""},
{"name":"安徽","parent":""},
{"name":"浙江","parent":""},
{"name":"福建","parent":""},
{"name":"江西","parent":""},
{"name":"河南","parent":""},
{"name":"湖北","parent":""},
{"name":"湖南","parent":""},
{"name":"广东","parent":""},
{"name":"广西","parent":""},
{"name":"四川","parent":""},
{"name":"贵州","parent":""},
{"name":"云南","parent":""},
{"name":"陕西","parent":""},
{"name":"甘肃","parent":""},
{"name":"宁夏","parent":""},
{"name":"青海","parent":""},
{"name":"西藏","parent":""},
{"name":"新疆","parent":""},
{"name":"海南","parent":""},
{"name":"重庆","parent":""},
{"name":"台湾","parent":""},
{"name":"香港","parent":""},
{"name":"澳门","parent":""},
{"name":"海外","parent":""},
{"name":"其他","parent":""},
{"name":"东城区","parent":"北京"},
{"name":"西城区","parent":"北京"},
{"name":"宣武区","parent":"北京"},
{"name":"崇文区","parent":"北京"},
{"name":"朝阳区","parent":"北京"},
{"name":"海淀区","parent":"北京"},
{"name":"丰台区","parent":"北京"},
{"name":"门头沟区","parent":"北京"},
{"name":"石景山区","parent":"北京"},
{"name":"通县","parent":"北京"},
{"name":"平觳县","parent":"北京"},
{"name":"顺义县","parent":"北京"},
{"name":"怀柔县","parent":"北京"},
{"name":"密云县","parent":"北京"},
{"name":"延庆县","parent":"北京"},
{"name":"昌平县","parent":"北京"},
{"name":"大兴县","parent":"北京"},
{"name":"河东区","parent":"天津"},
{"name":"河西区","parent":"天津"},
{"name":"河北区","parent":"天津"},
{"name":"南开区","parent":"天津"},
{"name":"红桥区","parent":"天津"},
{"name":"塘沽区","parent":"天津"},
{"name":"汉沽区","parent":"天津"},
{"name":"东郊区","parent":"天津"},
{"name":"南郊区","parent":"天津"},
{"name":"西郊区","parent":"天津"},
{"name":"北郊区","parent":"天津"},
{"name":"大港区","parent":"天津"},
{"name":"长宁区","parent":"上海"},
{"name":"卢湾区","parent":"上海"},
{"name":"杨浦区","parent":"上海"},
{"name":"吴松区","parent":"上海"},
{"name":"闵行区","parent":"上海"},
{"name":"闸北区","parent":"上海"},
{"name":"南市区","parent":"上海"},
{"name":"虹口区","parent":"上海"},
{"name":"徐汇区","parent":"上海"},
{"name":"黄浦区","parent":"上海"},
{"name":"普陀区","parent":"上海"},
{"name":"静安区","parent":"上海"},
{"name":"上海县","parent":"上海"},
{"name":"嘉定县","parent":"上海"},
{"name":"宝山县","parent":"上海"},
{"name":"川沙县","parent":"上海"},
{"name":"南汇县","parent":"上海"},
{"name":"奉贤县","parent":"上海"},
{"name":"松江县","parent":"上海"},
{"name":"金山县","parent":"上海"},
{"name":"青浦县","parent":"上海"},
{"name":"崇明县","parent":"上海"},
{"name":"石家庄市","parent":"河北"},
{"name":"邯郸市","parent":"河北"},
{"name":"武安市","parent":"河北"},
{"name":"邢台市","parent":"河北"},
{"name":"张家口市","parent":"河北"},
{"name":"承德市","parent":"河北"},
{"name":"唐山市","parent":"河北"},
{"name":"秦皇岛市","parent":"河北"},
{"name":"沧州市","parent":"河北"},
{"name":"辛集市","parent":"河北"},
{"name":"南宫市","parent":"河北"},
{"name":"沙河市","parent":"河北"},
{"name":"涿州市","parent":"河北"},
{"name":"定州市","parent":"河北"},
{"name":"廊坊市","parent":"河北"},
{"name":"泊头市","parent":"河北"},
{"name":"任丘市","parent":"河北"},
{"name":"衡水市","parent":"河北"},
{"name":"太原市","parent":"山西"},
{"name":"古交市","parent":"山西"},
{"name":"大同市","parent":"山西"},
{"name":"阳泉市","parent":"山西"},
{"name":"长治市","parent":"山西"},
{"name":"晋城市","parent":"山西"},
{"name":"朔州市","parent":"山西"},
{"name":"忻州市","parent":"山西"},
{"name":"榆次市","parent":"山西"},
{"name":"临汾市","parent":"山西"},
{"name":"候马市","parent":"山西"},
{"name":"运城市","parent":"山西"},
{"name":"呼和浩特市","parent":"内蒙古"},
{"name":"包头市","parent":"内蒙古"},
{"name":"乌海市","parent":"内蒙古"},
{"name":"赤峰市","parent":"内蒙古"},
{"name":"集宁市","parent":"内蒙古"},
{"name":"锡林浩特市","parent":"内蒙古"},
{"name":"二连浩特市","parent":"内蒙古"},
{"name":"海拉尔市","parent":"内蒙古"},
{"name":"满州里市","parent":"内蒙古"},
{"name":"牙克石市","parent":"内蒙古"},
{"name":"扎兰屯市","parent":"内蒙古"},
{"name":"通辽市","parent":"内蒙古"},
{"name":"东胜市","parent":"内蒙古"},
{"name":"乌兰浩特市","parent":"内蒙古"},
{"name":"沈阳市","parent":"辽宁"},
{"name":"大连市","parent":"辽宁"},
{"name":"瓦房店市","parent":"辽宁"},
{"name":"鞍山市","parent":"辽宁"},
{"name":"海城市","parent":"辽宁"},
{"name":"抚顺市","parent":"辽宁"},
{"name":"本溪市","parent":"辽宁"},
{"name":"丹东市","parent":"辽宁"},
{"name":"锦州市","parent":"辽宁"},
{"name":"锦西市","parent":"辽宁"},
{"name":"兴城市","parent":"辽宁"},
{"name":"营口市","parent":"辽宁"},
{"name":"阜新市","parent":"辽宁"},
{"name":"辽阳市","parent":"辽宁"},
{"name":"铁岭市","parent":"辽宁"},
{"name":"铁法市","parent":"辽宁"},
{"name":"开原市","parent":"辽宁"},
{"name":"长春市","parent":"吉林"},
{"name":"二通河","parent":"吉林"},
{"name":"九台市","parent":"吉林"},
{"name":"吉林市","parent":"吉林"},
{"name":"四平市","parent":"吉林"},
{"name":"桦甸市","parent":"吉林"},
{"name":"辽源市","parent":"吉林"},
{"name":"公主岭市","parent":"吉林"},
{"name":"梅河口市","parent":"吉林"},
{"name":"集安市","parent":"吉林"},
{"name":"通化市","parent":"吉林"},
{"name":"浑江市","parent":"吉林"},
{"name":"白城市","parent":"吉林"},
{"name":"扶余市","parent":"吉林"},
{"name":"大安市","parent":"吉林"},
{"name":"延吉市","parent":"吉林"},
{"name":"图门市","parent":"吉林"},
{"name":"敦化市","parent":"吉林"},
{"name":"龙井市","parent":"吉林"},
{"name":"珲春市","parent":"吉林"},
{"name":"哈尔滨市","parent":"黑龙江"},
{"name":"阿城市","parent":"黑龙江"},
{"name":"齐齐哈尔市","parent":"黑龙江"},
{"name":"鹤岗市","parent":"黑龙江"},
{"name":"双鸭山市","parent":"黑龙江"},
{"name":"鸡西市","parent":"黑龙江"},
{"name":"伊春市","parent":"黑龙江"},
{"name":"大庆市","parent":"黑龙江"},
{"name":"铁力市","parent":"黑龙江"},
{"name":"牡丹江市","parent":"黑龙江"},
{"name":"绥芬河市","parent":"黑龙江"},
{"name":"密山市","parent":"黑龙江"},
{"name":"富锦市","parent":"黑龙江"},
{"name":"七台河市","parent":"黑龙江"},
{"name":"尚志市","parent":"黑龙江"},
{"name":"双城市","parent":"黑龙江"},
{"name":"肇东市","parent":"黑龙江"},
{"name":"绥化市","parent":"黑龙江"},
{"name":"安达市","parent":"黑龙江"},
{"name":"黑河市","parent":"黑龙江"},
{"name":"北安市","parent":"黑龙江"},
{"name":"南京市","parent":"江苏"},
{"name":"徐州市","parent":"江苏"},
{"name":"连云港市","parent":"江苏"},
{"name":"淮阴市","parent":"江苏"},
{"name":"淮安市","parent":"江苏"},
{"name":"盐城市","parent":"江苏"},
{"name":"扬州市","parent":"江苏"},
{"name":"东台市","parent":"江苏"},
{"name":"泰州市","parent":"江苏"},
{"name":"仪征市","parent":"江苏"},
{"name":"兴化市","parent":"江苏"},
{"name":"南通市","parent":"江苏"},
{"name":"镇江市","parent":"江苏"},
{"name":"丹阳市","parent":"江苏"},
{"name":"常州市","parent":"江苏"},
{"name":"无锡市","parent":"江苏"},
{"name":"江阴市","parent":"江苏"},
{"name":"宜兴市","parent":"江苏"},
{"name":"苏州市","parent":"江苏"},
{"name":"常熟市","parent":"江苏"},
{"name":"张家港市","parent":"江苏"},
{"name":"杭州市","parent":"浙江"},
{"name":"萧山市","parent":"浙江"},
{"name":"宁波市","parent":"浙江"},
{"name":"余姚市","parent":"浙江"},
{"name":"慈溪市","parent":"浙江"},
{"name":"奉化市","parent":"浙江"},
{"name":"温州市","parent":"浙江"},
{"name":"瑞安市","parent":"浙江"},
{"name":"嘉兴市","parent":"浙江"},
{"name":"湖州市","parent":"浙江"},
{"name":"绍兴市","parent":"浙江"},
{"name":"金华市","parent":"浙江"},
{"name":"兰溪市","parent":"浙江"},
{"name":"东阳市","parent":"浙江"},
{"name":"义乌市","parent":"浙江"},
{"name":"衢州市","parent":"浙江"},
{"name":"江山市","parent":"浙江"},
{"name":"舟山市","parent":"浙江"},
{"name":"临海市","parent":"浙江"},
{"name":"椒江市","parent":"浙江"},
{"name":"丽水市","parent":"浙江"},
{"name":"北碚区","parent":"重庆"},
{"name":"南桐矿区","parent":"重庆"},
{"name":"双桥区","parent":"重庆"},
{"name":"渝北区","parent":"重庆"},
{"name":"长寿县","parent":"重庆"},
{"name":"巴南区","parent":"重庆"},
{"name":"綦江县","parent":"重庆"},
{"name":"合川县","parent":"重庆"},
{"name":"永川县","parent":"重庆"},
{"name":"江津县","parent":"重庆"},
{"name":"大足县","parent":"重庆"},
{"name":"荣昌县","parent":"重庆"},
{"name":"铜梁县","parent":"重庆"},
{"name":"潼南县","parent":"重庆"},
{"name":"壁山县","parent":"重庆"},
{"name":"万县市","parent":"重庆"},
{"name":"万县","parent":"重庆"},
{"name":"忠县","parent":"重庆"},
{"name":"云阳县","parent":"重庆"},
{"name":"奉节县","parent":"重庆"},
{"name":"巫山县","parent":"重庆"},
{"name":"梁平县","parent":"重庆"},
{"name":"开县","parent":"重庆"},
{"name":"巫溪县","parent":"重庆"},
{"name":"城口县","parent":"重庆"},
{"name":"涪陵市","parent":"重庆"},
{"name":"李渡区","parent":"重庆"},
{"name":"丰都县","parent":"重庆"},
{"name":"垫江县","parent":"重庆"},
{"name":"南川县","parent":"重庆"},
{"name":"武隆县","parent":"重庆"},
{"name":"石柱土家族自治县","parent":"重庆"},
{"name":"彭水苗族土家族自治县","parent":"重庆"},
{"name":"黔江土家族苗族自治县","parent":"重庆"},
{"name":"酉阳土家族苗族自治县","parent":"重庆"},
{"name":"秀山土家族苗族自治县","parent":"重庆"},
{"name":"成都市","parent":"四川"},
{"name":"都江堰市","parent":"四川"},
{"name":"自贡市","parent":"四川"},
{"name":"攀枝花市","parent":"四川"},
{"name":"德阳市","parent":"四川"},
{"name":"广汉市","parent":"四川"},
{"name":"绵阳市","parent":"四川"},
{"name":"江油市","parent":"四川"},
{"name":"遂宁市","parent":"四川"},
{"name":"内江市","parent":"四川"},
{"name":"乐山市","parent":"四川"},
{"name":"峨眉山市","parent":"四川"},
{"name":"宜宾市","parent":"四川"},
{"name":"涪陵市","parent":"四川"},
{"name":"万县市","parent":"四川"},
{"name":"南充市","parent":"四川"},
{"name":"华莹市","parent":"四川"},
{"name":"达县市","parent":"四川"},
{"name":"雅安市","parent":"四川"},
{"name":"西昌市","parent":"四川"},
{"name":"合肥市","parent":"安徽"},
{"name":"淮南市","parent":"安徽"},
{"name":"淮北市","parent":"安徽"},
{"name":"芜湖市","parent":"安徽"},
{"name":"铜陵市","parent":"安徽"},
{"name":"蚌埠市","parent":"安徽"},
{"name":"马鞍山市","parent":"安徽"},
{"name":"安庆市","parent":"安徽"},
{"name":"池洲市","parent":"安徽"},
{"name":"黄山市","parent":"安徽"},
{"name":"宣城市","parent":"安徽"},
{"name":"六安市","parent":"安徽"},
{"name":"阜阳市","parent":"安徽"},
{"name":"福州市","parent":"福建"},
{"name":"厦门市","parent":"福建"},
{"name":"三明市","parent":"福建"},
{"name":"永安市","parent":"福建"},
{"name":"莆田市","parent":"福建"},
{"name":"泉州市","parent":"福建"},
{"name":"石狮市","parent":"福建"},
{"name":"晋江市","parent":"福建"},
{"name":"漳州市","parent":"福建"},
{"name":"南平市","parent":"福建"},
{"name":"邵武市","parent":"福建"},
{"name":"宁德市","parent":"福建"},
{"name":"龙岩市","parent":"福建"},
{"name":"南昌市","parent":"江西"},
{"name":"景德镇市","parent":"江西"},
{"name":"萍乡市","parent":"江西"},
{"name":"新余市","parent":"江西"},
{"name":"九江市","parent":"江西"},
{"name":"鹰潭市","parent":"江西"},
{"name":"上饶市","parent":"江西"},
{"name":"宜春市","parent":"江西"},
{"name":"抚州市","parent":"江西"},
{"name":"吉安市","parent":"江西"},
{"name":"井冈山市","parent":"江西"},
{"name":"赣州市","parent":"江西"},
{"name":"济南市","parent":"山东"},
{"name":"青岛市","parent":"山东"},
{"name":"胶州市","parent":"山东"},
{"name":"崂山县","parent":"山东"},
{"name":"胶南市","parent":"山东"},
{"name":"即墨市","parent":"山东"},
{"name":"莱西市","parent":"山东"},
{"name":"平度市","parent":"山东"},
{"name":"淄博市","parent":"山东"},
{"name":"桓台县","parent":"山东"},
{"name":"枣庄市","parent":"山东"},
{"name":"滕州市","parent":"山东"},
{"name":"东营市","parent":"山东"},
{"name":"垦利县","parent":"山东"},
{"name":"利津县","parent":"山东"},
{"name":"广饶县","parent":"山东"},
{"name":"潍坊市","parent":"山东"},
{"name":"青州市","parent":"山东"},
{"name":"诸城市","parent":"山东"},
{"name":"昌邑县","parent":"山东"},
{"name":"高密县","parent":"山东"},
{"name":"五莲县","parent":"山东"},
{"name":"安丘县","parent":"山东"},
{"name":"昌乐县","parent":"山东"},
{"name":"临朐县","parent":"山东"},
{"name":"寿光县","parent":"山东"},
{"name":"烟台市","parent":"山东"},
{"name":"龙口市","parent":"山东"},
{"name":"莱阳市","parent":"山东"},
{"name":"莱州市","parent":"山东"},
{"name":"牟平县","parent":"山东"},
{"name":"海阳县","parent":"山东"},
{"name":"招远市","parent":"山东"},
{"name":"栖霞县","parent":"山东"},
{"name":"蓬莱市","parent":"山东"},
{"name":"长岛县","parent":"山东"},
{"name":"威海市","parent":"山东"},
{"name":"荣城市","parent":"山东"},
{"name":"文登市","parent":"山东"},
{"name":"乳山县","parent":"山东"},
{"name":"济宁市","parent":"山东"},
{"name":"曲阜市","parent":"山东"},
{"name":"兖州市","parent":"山东"},
{"name":"邹县","parent":"山东"},
{"name":"徽山县","parent":"山东"},
{"name":"鱼台县","parent":"山东"},
{"name":"金乡县","parent":"山东"},
{"name":"嘉祥县","parent":"山东"},
{"name":"汶止县","parent":"山东"},
{"name":"泗水县","parent":"山东"},
{"name":"泰安市","parent":"山东"},
{"name":"莱芜市","parent":"山东"},
{"name":"新泰市","parent":"山东"},
{"name":"宁阳县","parent":"山东"},
{"name":"东平县","parent":"山东"},
{"name":"肥城县","parent":"山东"},
{"name":"德州市","parent":"山东"},
{"name":"乐陵市","parent":"山东"},
{"name":"陵县","parent":"山东"},
{"name":"宁津县","parent":"山东"},
{"name":"庆云县","parent":"山东"},
{"name":"商河县","parent":"山东"},
{"name":"临邑县","parent":"山东"},
{"name":"济阳县","parent":"山东"},
{"name":"齐河县","parent":"山东"},
{"name":"禹城县","parent":"山东"},
{"name":"平原县","parent":"山东"},
{"name":"夏津县","parent":"山东"},
{"name":"武城县","parent":"山东"},
{"name":"滨州市","parent":"山东"},
{"name":"沾化县","parent":"山东"},
{"name":"博兴县","parent":"山东"},
{"name":"高青县","parent":"山东"},
{"name":"邹平县","parent":"山东"},
{"name":"惠民县","parent":"山东"},
{"name":"阳信县","parent":"山东"},
{"name":"无棣县","parent":"山东"},
{"name":"菏泽市","parent":"山东"},
{"name":"鄄城县","parent":"山东"},
{"name":"郓城县","parent":"山东"},
{"name":"梁山县","parent":"山东"},
{"name":"巨野县","parent":"山东"},
{"name":"成武县","parent":"山东"},
{"name":"单县","parent":"山东"},
{"name":"曹县","parent":"山东"},
{"name":"定陶县","parent":"山东"},
{"name":"东明县","parent":"山东"},
{"name":"聊城市","parent":"山东"},
{"name":"临清市","parent":"山东"},
{"name":"高唐县","parent":"山东"},
{"name":"茌平县","parent":"山东"},
{"name":"东阿县","parent":"山东"},
{"name":"阳觳县","parent":"山东"},
{"name":"莘县","parent":"山东"},
{"name":"冠县","parent":"山东"},
{"name":"临沂市","parent":"山东"},
{"name":"日照市","parent":"山东"},
{"name":"沂南县","parent":"山东"},
{"name":"沂水县","parent":"山东"},
{"name":"莒县","parent":"山东"},
{"name":"莒南县","parent":"山东"},
{"name":"临沭县","parent":"山东"},
{"name":"郯城县","parent":"山东"},
{"name":"苍山县","parent":"山东"},
{"name":"费县","parent":"山东"},
{"name":"平邑县","parent":"山东"},
{"name":"蒙阴县","parent":"山东"},
{"name":"沂源县","parent":"山东"},
{"name":"郑州市","parent":"河南"},
{"name":"开封市","parent":"河南"},
{"name":"平顶山市","parent":"河南"},
{"name":"汝州市","parent":"河南"},
{"name":"洛阳市","parent":"河南"},
{"name":"济源市","parent":"河南"},
{"name":"鹤壁市","parent":"河南"},
{"name":"新乡市","parent":"河南"},
{"name":"卫辉市","parent":"河南"},
{"name":"辉县市","parent":"河南"},
{"name":"安阳市","parent":"河南"},
{"name":"濮阳市","parent":"河南"},
{"name":"许昌市","parent":"河南"},
{"name":"禹州市","parent":"河南"},
{"name":"漯河市","parent":"河南"},
{"name":"三门峡市","parent":"河南"},
{"name":"义马市","parent":"河南"},
{"name":"商丘市","parent":"河南"},
{"name":"周口市","parent":"河南"},
{"name":"驻马店市","parent":"河南"},
{"name":"信阳市","parent":"河南"},
{"name":"南阳市","parent":"河南"},
{"name":"邓州市","parent":"河南"},
{"name":"武汉市","parent":"湖北"},
{"name":"黄石市","parent":"湖北"},
{"name":"襄樊市","parent":"湖北"},
{"name":"随州市","parent":"湖北"},
{"name":"老河口市","parent":"湖北"},
{"name":"枣阳市","parent":"湖北"},
{"name":"十堰市","parent":"湖北"},
{"name":"宜昌市","parent":"湖北"},
{"name":"沙市市","parent":"湖北"},
{"name":"荆门市","parent":"湖北"},
{"name":"鄂州市","parent":"湖北"},
{"name":"孝感市","parent":"湖北"},
{"name":"应城市","parent":"湖北"},
{"name":"安陆市","parent":"湖北"},
{"name":"应山市","parent":"湖北"},
{"name":"黄冈地区","parent":"湖北"},
{"name":"麻城市","parent":"湖北"},
{"name":"武穴市","parent":"湖北"},
{"name":"咸宁市","parent":"湖北"},
{"name":"蒲圻市","parent":"湖北"},
{"name":"荆州地区","parent":"湖北"},
{"name":"石首市","parent":"湖北"},
{"name":"仙桃市","parent":"湖北"},
{"name":"洪湖市","parent":"湖北"},
{"name":"天门市","parent":"湖北"},
{"name":"潜江市","parent":"湖北"},
{"name":"宜昌地区","parent":"湖北"},
{"name":"枝城市","parent":"湖北"},
{"name":"当阳市","parent":"湖北"},
{"name":"郧阳地区","parent":"湖北"},
{"name":"丹江口市","parent":"湖北"},
{"name":"恩施市","parent":"湖北"},
{"name":"利川市","parent":"湖北"},
{"name":"神农架区","parent":"湖北"},
{"name":"长沙市","parent":"湖南"},
{"name":"株州市","parent":"湖南"},
{"name":"醴陵市","parent":"湖南"},
{"name":"湘潭市","parent":"湖南"},
{"name":"湘乡市","parent":"湖南"},
{"name":"衡阳市","parent":"湖南"},
{"name":"耒阳市","parent":"湖南"},
{"name":"邵阳市","parent":"湖南"},
{"name":"岳阳市","parent":"湖南"},
{"name":"汨罗市","parent":"湖南"},
{"name":"郴州市","parent":"湖南"},
{"name":"资兴市","parent":"湖南"},
{"name":"永州市","parent":"湖南"},
{"name":"冷水滩市","parent":"湖南"},
{"name":"娄底市","parent":"湖南"},
{"name":"冷水江市","parent":"湖南"},
{"name":"涟源市","parent":"湖南"},
{"name":"新化市","parent":"湖南"},
{"name":"怀化市","parent":"湖南"},
{"name":"常德市","parent":"湖南"},
{"name":"津市市","parent":"湖南"},
{"name":"益阳市","parent":"湖南"},
{"name":"沅江市","parent":"湖南"},
{"name":"吉首市","parent":"湖南"},
{"name":"大庸市","parent":"湖南"},
{"name":"广州市","parent":"广东"},
{"name":"韶关市","parent":"广东"},
{"name":"清远市","parent":"广东"},
{"name":"梅州市","parent":"广东"},
{"name":"汕头市","parent":"广东"},
{"name":"潮州市","parent":"广东"},
{"name":"惠州市","parent":"广东"},
{"name":"东莞市","parent":"广东"},
{"name":"汕尾市","parent":"广东"},
{"name":"河源市","parent":"广东"},
{"name":"深圳市","parent":"广东"},
{"name":"珠海市","parent":"广东"},
{"name":"湛江市","parent":"广东"},
{"name":"茂名市","parent":"广东"},
{"name":"肇庆市","parent":"广东"},
{"name":"佛山市","parent":"广东"},
{"name":"中山市","parent":"广东"},
{"name":"江门市","parent":"广东"},
{"name":"阳江市","parent":"广东"},
{"name":"南宁市","parent":"广西"},
{"name":"柳州市","parent":"广西"},
{"name":"桂林市","parent":"广西"},
{"name":"酲州市","parent":"广西"},
{"name":"北海市","parent":"广西"},
{"name":"冯祥市","parent":"广西"},
{"name":"河池市","parent":"广西"},
{"name":"合山市","parent":"广西"},
{"name":"玉林市","parent":"广西"},
{"name":"钦州市","parent":"广西"},
{"name":"百色市","parent":"广西"},
{"name":"海口市","parent":"海南"},
{"name":"三亚市","parent":"海南"},
{"name":"通什市","parent":"海南"},
{"name":"贵阳市","parent":"贵州"},
{"name":"遵义市","parent":"贵州"},
{"name":"铜仁市","parent":"贵州"},
{"name":"万山特区","parent":"贵州"},
{"name":"安顺市","parent":"贵州"},
{"name":"兴义市","parent":"贵州"},
{"name":"凯里市","parent":"贵州"},
{"name":"都匀市","parent":"贵州"},
{"name":"昆明市","parent":"云南"},
{"name":"东川市","parent":"云南"},
{"name":"昭通市","parent":"云南"},
{"name":"曲靖市","parent":"云南"},
{"name":"玉溪市","parent":"云南"},
{"name":"保山市","parent":"云南"},
{"name":"个旧市","parent":"云南"},
{"name":"开远市","parent":"云南"},
{"name":"楚雄市","parent":"云南"},
{"name":"大理市","parent":"云南"},
{"name":"畹町市","parent":"云南"},
{"name":"拉萨市","parent":"西藏"},
{"name":"日喀则市","parent":"西藏"},
{"name":"西安市","parent":"陕西"},
{"name":"铜川市","parent":"陕西"},
{"name":"宝鸡市","parent":"陕西"},
{"name":"咸阳市","parent":"陕西"},
{"name":"榆林市","parent":"陕西"},
{"name":"延安市","parent":"陕西"},
{"name":"渭南市","parent":"陕西"},
{"name":"韩城市","parent":"陕西"},
{"name":"商州市","parent":"陕西"},
{"name":"安康市","parent":"陕西"},
{"name":"汉中市","parent":"陕西"},
{"name":"兰州市","parent":"甘肃"},
{"name":"金昌市","parent":"甘肃"},
{"name":"嘉裕关市","parent":"甘肃"},
{"name":"白银市","parent":"甘肃"},
{"name":"天水市","parent":"甘肃"},
{"name":"西峰市","parent":"甘肃"},
{"name":"武威市","parent":"甘肃"},
{"name":"张掖市","parent":"甘肃"},
{"name":"酒泉市","parent":"甘肃"},
{"name":"玉门市","parent":"甘肃"},
{"name":"敦煌市","parent":"甘肃"},
{"name":"甘南州","parent":"甘肃"},
{"name":"临夏市","parent":"甘肃"},
{"name":"西宁市","parent":"青海"},
{"name":"德令哈市","parent":"青海"},
{"name":"格尔木市","parent":"青海"},
{"name":"乌鲁木齐市","parent":"新疆"},
{"name":"石河子市","parent":"新疆"},
{"name":"克拉玛依市","parent":"新疆"},
{"name":"哈密市","parent":"新疆"},
{"name":"和田市","parent":"新疆"},
{"name":"阿克苏市","parent":"新疆"},
{"name":"喀什市","parent":"新疆"},
{"name":"阿图什市","parent":"新疆"},
{"name":"库尔勒市","parent":"新疆"},
{"name":"昌吉市","parent":"新疆"},
{"name":"博乐市","parent":"新疆"},
{"name":"奎屯市","parent":"新疆"},
{"name":"伊宁市","parent":"新疆"},
{"name":"塔城市","parent":"新疆"},
{"name":"阿勒泰市","parent":"新疆"},
{"name":"银川市","parent":"宁夏"},
{"name":"吴忠市","parent":"宁夏"},
{"name":"青铜峡市","parent":"宁夏"},
{"name":"石咀山市","parent":"宁夏"},
{"name":"台北","parent":"台湾"},
{"name":"高雄","parent":"台湾"},
{"name":"基隆","parent":"台湾"},
{"name":"台中","parent":"台湾"},
{"name":"台南","parent":"台湾"},
{"name":"新竹","parent":"台湾"},
{"name":"嘉义","parent":"台湾"},
{"name":"香港","parent":"香港"},
{"name":"澳门","parent":"澳门"},
{"name":"海外","parent":"海外"},
{"name":"其他","parent":"其他"}
];

function initProvince() {
	var provinceSelector = dojo.byId("province");
	//dojo.connect(provinceSelector,"onChange","loadCities");
	var provinces = selectRegionsByParent("");
	for(var i =0;i<provinces.length;i++){
		createOption(provinces[i],provinceSelector);
	}
}

function createOption(region,selector){
	var option = document.createElement("OPTION");
	option.value=region.name;
	option.text=region.name;
	option.label=region.name;
	selector.appendChild(option);
}

function selectRegionsByParent(pid){
	var selected = [];
	for(var i =0;i<regions.length;i++){
		var region = regions[i];
		if(region.parent==pid){
			selected.push(region);
		}
	}
	return selected;
}

function loadCities() {
	var provinceSelector = dojo.byId("province");
	var province = provinceSelector.options[provinceSelector.selectedIndex].value;
	var citySelector = dojo.byId("city");
	for(var i=citySelector.options.length-1;i>=0;i--){
		citySelector.removeChild(citySelector.options[i]);
	}
	
	var cities = selectRegionsByParent(province);
	for(var i =0;i<cities.length;i++){
		createOption(cities[i],citySelector);
	}
}
function setSelectedValue(){
	var basicProv = dojo.byId("basic.province");
	var basicCity = dojo.byId("basic.city");
	var prov = dojo.byId("province");
	var city = dojo.byId("city");
	basicProv.value = prov.options[prov.selectedIndex].value;
	basicCity.value = city.options[city.selectedIndex].value;
}
dojo.addOnLoad(function(){initProvince();loadCities();});